<!-- 暂无数据的组件 -->
<template>
  <div>
    <div class="nodata-box">
      <img class="image" src="@/assets/images/components/nodata-icon.png" alt="" />
      <div class="desc">{{ desc }}</div>
    </div>
  </div>
</template>

<script setup lang="ts">
interface Props {
  desc?: string
}

withDefaults(defineProps<Props>(), {
  desc: '暂无数据'
})
</script>

<style lang="scss" scoped>
.nodata-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  .image {
    flex-shrink: 0;
    width: 144px;
    height: 144px;
    margin-bottom: 20px;
  }
  .desc {
    font-size: 16px;
    font-family:
      PingFang SC,
      PingFang SC-Regular;
    font-weight: 400;
    text-align: center;
    color: #999999;
    line-height: 1.5;
  }
}
</style>
